package com.foreknow.mapping;

import com.foreknow.model.Admin;

import java.sql.ResultSet;
import java.sql.SQLException;

public class AdminMapping implements EntityMapping {
    @Override
    public Object mapping(ResultSet rs) throws SQLException {
        Admin admin = new Admin();
        admin.setId(rs.getInt("ID"));
        admin.setName(rs.getString("NAME"));
        admin.setPass(rs.getString("PASS"));
        return admin;
    }
}
